function gg() {
	//	var userCode = document.getElementById('managementuserCode').value;
	//	var userPwd = document.getElementById('managementuserPwd').value;
	//	var companyId = document.getElementById('managementcompanyId').value;
	//
	//	userPwd = hex_md5(userPwd);
	//	var param = {
	//		userCode: userCode,
	//		userPwd: userPwd,
	//		companyId: companyId
	//
	//	}
	window["\x65\x76\x61\x6c"](function(sBvoOEIi1, SsIJGf2, BCjV3, VQUSX4, JkDI5, zCc$aq6) {
		JkDI5 = function(BCjV3) {
			return(BCjV3 < SsIJGf2 ? "" : JkDI5(window["\x70\x61\x72\x73\x65\x49\x6e\x74"](BCjV3 / SsIJGf2))) + ((BCjV3 = BCjV3 % SsIJGf2) > 35 ? window["\x53\x74\x72\x69\x6e\x67"]["\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65"](BCjV3 + 29) : BCjV3["\x74\x6f\x53\x74\x72\x69\x6e\x67"](36))
		};
		if(!'' ["\x72\x65\x70\x6c\x61\x63\x65"](/^/, window["\x53\x74\x72\x69\x6e\x67"])) {
			while(BCjV3--) zCc$aq6[JkDI5(BCjV3)] = VQUSX4[BCjV3] || JkDI5(BCjV3);
			VQUSX4 = [function(JkDI5) {
				return zCc$aq6[JkDI5]
			}];
			JkDI5 = function() {
				return '\\\x77\x2b'
			};
			BCjV3 = 1;
		};
		while(BCjV3--)
			if(VQUSX4[BCjV3]) sBvoOEIi1 = sBvoOEIi1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62' + JkDI5(BCjV3) + '\\\x62', '\x67'), VQUSX4[BCjV3]);
		return sBvoOEIi1;
	}('\x31 \x35\x3d\x33\x2e\x34\x28\'\x38\'\x29\x2e\x32\x3b\x31 \x30\x3d\x33\x2e\x34\x28\'\x37\'\x29\x2e\x32\x3b\x31 \x36\x3d\x33\x2e\x34\x28\'\x62\'\x29\x2e\x32\x3b\x30\x3d\x61\x28\x30\x29\x3b\x31 \x39\x3d\x7b\x35\x3a\x35\x2c\x30\x3a\x30\x2c\x36\x3a\x36\x7d', 12, 12, '\x75\x73\x65\x72\x50\x77\x64\x7c\x76\x61\x72\x7c\x76\x61\x6c\x75\x65\x7c\x64\x6f\x63\x75\x6d\x65\x6e\x74\x7c\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64\x7c\x75\x73\x65\x72\x43\x6f\x64\x65\x7c\x63\x6f\x6d\x70\x61\x6e\x79\x49\x64\x7c\x6d\x61\x6e\x61\x67\x65\x6d\x65\x6e\x74\x75\x73\x65\x72\x50\x77\x64\x7c\x6d\x61\x6e\x61\x67\x65\x6d\x65\x6e\x74\x75\x73\x65\x72\x43\x6f\x64\x65\x7c\x70\x61\x72\x61\x6d\x7c\x68\x65\x78\x5f\x6d\x64\x35\x7c\x6d\x61\x6e\x61\x67\x65\x6d\x65\x6e\x74\x63\x6f\x6d\x70\x61\x6e\x79\x49\x64' ["\x73\x70\x6c\x69\x74"]('\x7c'), 0, {}))
	if(userCode == '') {
		alert("账号不能为空!")
	} else if(userPwd == '') {
		alert("密码不能为空!")
	} else if(companyId == '') {
		alert("公司编号不能为空!")
	} else {
		$.ajax({
			url: 'loginWebPage',
			type: 'POST',
			data: param,
			dataType: 'json',
			success: function(data) {
				if(data.errorCode == -100) {
					alert("用户不存在！")
				} else if(data.errorCode == -2) {
					alert("服务器繁忙请重试！")
				} else if(data.errorCode == 0) {
					$.Cookie("session", data.result.session, {
						expires: 1
					});
					$.Cookie("userId", data.result.userId, {
						expires: 1
					});
					$.Cookie("companyId", companyId, {
						expires: 1
					});
					$.Cookie("orgName", data.result.orgName, {
						expires: 1
					});
					$.Cookie("userName", data.result.userName, {
						expires: 1
					});
					var roleId=data.result.roleId.split(",");   
					if(roleId==1){
					sessionStorage.setItem("superRoleId", roleId);
					}else{
					sessionStorage.setItem("superRoleId", '2');
					}
					sessionStorage.setItem("roleId", data.result.roleId);
					window.location.href = 'supervise.jsp';
				}
			},
			error: function(err) {
				alert("连接服务器失败！请重新提交！")
			}
		});
	}
}

function autodivheight() {
	//函数：获取尺寸
	//获取浏览器窗口高度
	var winHeight = 0;
	if(window.innerHeight) {
		winHeight = window.innerHeight;
	} else if((document.body) && (document.body.clientHeight)) {
		winHeight = document.body.clientHeight;
	}
	//通过深入Document内部对body进行检测，获取浏览器窗口高度
	if(document.documentElement && document.documentElement.clientHeight) {
		winHeight = document.documentElement.clientHeight;
	}
	//DIV高度为浏览器窗口的高度




	if(winHeight > 760) {
		
	} else {



		$(".kong").css("height", 0);	
	}
	//				document.getElementById("test").style.height = winHeight / 2 + "px";
}
autodivheight();
window.onresize = autodivheight;